package Decorator;

/**
 * @ProjectName: 23种设计模式
 * @Package: Decorator
 * @ClassName: SwinCarDecorator
 * @Author: renhan
 * @Description:
 * @Date: 2020/11/29 16:54
 * @Version: 1.0
 */
public class SwinCarDecorator extends CarDecorator {
    public SwinCarDecorator(Car car) {
        super(car);
    }
    @Override
    public void show() {
        this.getCar().show();
        this.swim();
    }
    public void swim() {
        System.out.println("you");
    }
}
